<?php

namespace App\Http\Controllers\Collect;

use App\Models\Article;
use App\Http\Controllers\Controller;
use App\Service\Dir;

class TestController extends Controller
{
    // 采集测试
    public function initialize()
    {
        parent::initialize();
    }


    // 采集并保存到数据库
    public function xueqiu()
    {
        $keyword = '易见股份';
        // 采集
        $ser  = new \App\Service\Collect\Xueqiu();
        $uid  = 0;
        $time = time();

        $page = 1;
        $size = 10;
        $res  = $ser->getApiList($keyword, $page, $size);

        var_dump($res);
    }

    // 采集并保存到数据库
    public function jrj()
    {
        $keyword = '易见股份';
        // 采集
        $ser  = new \App\Service\Collect\Jrj();
        $uid  = 0;
        $time = time();

        $page = 1;
        $size = 10;
        $res  = $ser->getApiList($keyword, $page, $size);

        var_dump($res);
    }

    // 采集并保存到数据库
    public function baijiahao()
    {
        $keyword = '易见股份';
        // 采集
        $ser  = new \App\Service\Collect\Baijiahao();
        $uid  = 0;
        $time = time();

        $page = 1;
        $size = 10;
        $res  = $ser->getApiList($keyword, $page, $size);

        var_dump($res);
    }


}


